package com.ellricky.baselib.adapter.course

import androidx.fragment.app.Fragment
import com.andr.common.util.ResUtil
import com.ellricky.baselib.BaseConstant
import com.ellricky.baselib.R
import com.ellricky.baselib.ui.base.BaseTabVpActivity

class MakeUpCourseListActivity : BaseTabVpActivity() {

    override fun getFragmentList(): MutableList<Fragment> {
        return mutableListOf(
            MakeUpCourseFragment.newInstance(BaseConstant.OUT_TYPE_LEAVE),
            MakeUpCourseFragment.newInstance(BaseConstant.OUT_TYPE_ABSENT),
            MakeUpCourseFragment.newInstance(BaseConstant.STU_TYPE_MAKE_UP)
        )
    }

    override fun getTabTitleList(): MutableList<String> {
        return ResUtil.getStrArr(this, R.array.base_make_up_tip)
            .toMutableList()
    }

    override fun getTitleRes(): Int {
        return R.string.base_make_up_title
    }
}